package com.qaml.mes.device.dto.dayoff;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;


@Data
public class DayOffSaveReqDTO implements Serializable {

    @ApiModelProperty(value = "ID 更新时传递")
    private Long id;

    @NotNull
    @ApiModelProperty(value = "假期类型 1_周末 2_法定节假日 3_其他", required = true)
    private Integer dayOffType;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "开始时间", required = true)
    @NotNull
    private Date startTime;

    /**
     * 检保结束时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "结束时间", required = true)
    @NotNull
    private Date endTime;


    @ApiModelProperty(value = "备注")
    private String remark;


}
